import request from './request'

/**
 * 登录
 * @param {*} data
 * @returns
 */
export const login = (data) => {
  return request({
    url: '/blog/login',
    method: 'POST',
    data
  })
}

/**
 * 注册
 * @param {*} data
 * @returns
 */
export const reguser = (data) => {
  return request({
    url: '/blog/reguser',
    method: 'POST',
    data
  })
}
